package engine.map.staticobjects;

import java.awt.Color;
import engine.display.Display;
import engine.map.Tile;

/**
 * This class represents an "empty" tile in the game world.
 * 
 * @author johnsad5
 */
public class Floor extends Tile {
	private Color color = Color.DARK_GRAY;

	@Override
	public Color getColor() {
		return color;
	}

	@Override
	public boolean isObstruction() {
		return false;
	}

	@Override
	public boolean isPassable() {
		return true;
	}

	@Override
	public void render(Display display, int x, int y) {
		display.drawBackground(x, y, color);
	}

	@Override
	public void renderShaded(Display display, int x, int y) {
		display.drawBackground(x, y, color.darker());
	}

	@Override
	public void setColor(Color color) {
		this.color = color;
	}

	@Override
	public String toString() {
		return " ";
	}
}